package com.ryx.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

/**
 * @BelongsPackage: com.ryx.utils
 * @Author: 容永轩
 * @CreateTime: 2020-11-06
 * @Description:  token配置读取类
 */
@Configuration
@ConfigurationProperties(prefix = "jwt")
@Data
public class TokenSetting {


    private String secretKey;

    private Duration accessTokenExpireTime;
    private Duration refreshTokenExpireTime;
    private Duration refreshTokenExpireAppTime;

    private String issuer;
}
